﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Parts.aspx.cs" Inherits="Parts_Parts" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
    <div>
        <asp:LinkButton ID="linkAsset" runat="server" Font-Size="Small">Assets</asp:LinkButton>
        &nbsp;
        <asp:Label ID="Label7" runat="server" Text=" > " Font-Size="Small"></asp:Label>
        &nbsp;
        <asp:LinkButton ID="LinkButton6" runat="server" Text="Computer"
            Font-Size="Small"></asp:LinkButton>
        &nbsp;
        <asp:Label ID="Label1" runat="server" Text=" > " Font-Size="Small"></asp:Label>
        &nbsp;
        <asp:LinkButton ID="LinkButton1" runat="server" Text="Part()"
            Font-Size="Small"></asp:LinkButton>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="body" Runat="Server">

    <asp:Button ID="Button2" runat="server" Text="Add Part"  class="google-button-blue"
        
    style="width:150px; margin-top:2%; margin-right:5%; height:30px; float:right" 
    onclick="Button2_Click" />

    <div style="background-color:White; padding:2.5%">
        <asp:Label ID="lbAssetHeading" runat="server" Text="Computer Part" Font-Bold="True" 
            Font-Size="X-Large"></asp:Label>
            <br /><br />

        <asp:Table ID="Table1" runat="server" CellPadding="1" 
                CellSpacing="0">
            <asp:TableRow>
                <asp:TableCell>
                    <asp:Label ID="lbPart_ID" runat="server" Text="Part ID: "></asp:Label>
            
                </asp:TableCell>
                <asp:TableCell>
                    <asp:TextBox ID="txtPart_ID" runat="server" ReadOnly="True" BorderStyle="None"></asp:TextBox>
            
                </asp:TableCell>
            </asp:TableRow>
            <asp:TableRow>
                <asp:TableCell>
                    <asp:Label ID="lbComputer_ID" runat="server" Text="Computer ID: "></asp:Label>
            
                </asp:TableCell>
                <asp:TableCell>
                    <asp:TextBox ID="txtComputerID" runat="server" ReadOnly="True" BorderStyle="None"></asp:TextBox>
            
                </asp:TableCell>
            </asp:TableRow>
            <asp:TableRow>
                <asp:TableCell>
                    <asp:Label ID="lbInstall_Date" runat="server" Text="Install Date: "></asp:Label>
            
                </asp:TableCell>
                <asp:TableCell>
                    <asp:TextBox ID="txtInstall_Date" runat="server" ReadOnly="True" BorderStyle="None"></asp:TextBox>
            
                </asp:TableCell>
            </asp:TableRow>
            <asp:TableRow>
                <asp:TableCell>
                    <asp:Label ID="lbPart_Type" runat="server" Text="Part Type: "></asp:Label>
            
                </asp:TableCell>
                <asp:TableCell>
                    <asp:TextBox ID="txtPart_Type" runat="server" ReadOnly="True" BorderStyle="None"></asp:TextBox>
            
                </asp:TableCell>
            </asp:TableRow>
            <asp:TableRow>
                <asp:TableCell>
                    <asp:Label ID="lbPart_Serial" runat="server" Text="Part Serial: "></asp:Label>
            
                </asp:TableCell>
                <asp:TableCell>
                    <asp:TextBox ID="txtPart_Serial" runat="server" ReadOnly="True" BorderStyle="None"></asp:TextBox>
            
                </asp:TableCell>
            </asp:TableRow>
            <asp:TableRow>
                <asp:TableCell>
                    <asp:Label ID="lbPart_Description" runat="server" Text="Part Description: "></asp:Label>
            
                </asp:TableCell>
                <asp:TableCell>
                    <asp:TextBox ID="txtPart_Description" runat="server" ReadOnly="True" BorderStyle="None"></asp:TextBox>
                </asp:TableCell>
            </asp:TableRow>
            <asp:TableRow>
                <asp:TableCell>
                        <asp:Button ID="btnUpdate" runat="server" Text="Update Area" class="button" 
                        style="width:150px; height:30px; top: 0px; left: 0px;" 
                            onclick="btnUpdate_Click" Visible="False" />
            
                </asp:TableCell>
                <asp:TableCell>
                        <asp:Button ID="btnCancle" runat="server" Text="Cancle Update" class="button" 
                        style="width:150px; height:30px; top: 0px; left: 0px;" 
                            onclick="btnCancle_Click" Visible="False" />
            
                </asp:TableCell>
            </asp:TableRow>
            <asp:TableRow>
                <asp:TableCell>
                        <asp:Button ID="btnEdit" runat="server" Text="Edit Area" class="button" 
                        style="width:150px; height:30px; top: 0px; left: 0px;" 
                            onclick="btnEdit_Click" Visible="False" />
            
                </asp:TableCell>
                <asp:TableCell>
                        <asp:Button ID="btnDelete" runat="server" Text="Delete Area" class="button" 
                        style="width:150px; top: 0px; left: 0px;" 
                            OnClientClick="return confirm('Are you sure you want to delete this item?\n\nOnce you delete a computer all the parts and installed software assosiated with the computer are delete form the asset control system.');" 
                            onclick="btnDelete_Click" Visible="True" Enabled="True" />
            
                </asp:TableCell>
            </asp:TableRow>

        </asp:Table>

    </div>

</asp:Content>

